using Microsoft.Practices.Unity;
using System.Web.Http;
using Unity.WebApi;

namespace WebMotor
{
    public static class UnityConfig
    {
        public static void RegisterComponents()
        {
            UnityContainerFactory factory = new UnityContainerFactory();
            UnityContainer container = factory.GetInstance();
            GlobalConfiguration.Configuration.DependencyResolver = new UnityDependencyResolver(container);
        }
    }
}